package com.ludaxu.google.holder;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.lidroid.xutils.BitmapUtils;
import com.ludaxu.google.R;
import com.ludaxu.google.domain.SubjectInfo;
import com.ludaxu.google.tools.BitmapHelper;
import com.ludaxu.google.tools.UiUtils;

public abstract class BaseHolder<Data> {

	View contentView;
	Data data;
	protected BitmapUtils bitmapUtils;

	public BaseHolder() {
		contentView = UiUtils.inflate(R.layout.item_subject);
		contentView = initView();
		contentView.setTag(this);
	}

	public abstract View initView();

	public View getContentView() {
		return contentView;
	}

	public void setInfo(Data data) {
		this.data = data;
		refreshView(data);
	}

	public abstract void refreshView(Data data);

}
